package ribbon;

import cn.whitecao.contentcenter.config.NacosSameClusterWeightedRule;
import cn.whitecao.contentcenter.config.NacosWeightedRule;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：腼腆的老黄.
 * @date ：Created in 2019-08-13 20:25
 */
@Configuration
public class RibbonConfiguration {
    @Bean
    public IRule ribbonRule(){
        return new NacosSameClusterWeightedRule();
    }
}
